//
//  TaskWithGetRecommend.m
//  DuBai
//
//  Created by darktm on 14-3-1.
//  Copyright (c) 2014年 darktm. All rights reserved.
//

#import "TaskWithGetRecommend.h"

#import "RecommendObject.h"

@implementation TaskWithGetRecommend

-(void)prepare{
    NSMutableDictionary *mDic = [NSMutableDictionary dictionary];
    [mDic setValue:self.updatetime forKey:@"updatetime"];
    [self startAsyncWithParams:mDic withMethod:@"GET" withURL:[Configure getHomeInfo]];
}
-(id)parese{
    
    NSMutableArray *ret = [NSMutableArray array];
    
    for (NSDictionary *dic in self.rcvData) {
        RecommendObject *obj = [[RecommendObject alloc] initWithReflectData:dic];
        [ret addObject:obj];
    }
    return ret;
}

@end
